package com.mjf.tankgame.v4;

/**
 * 自己的坦克
 */
public class MyTank extends Tank {

    public MyTank(int x, int y) {
        super(x, y);
    }

    // 射击
    public void shotEnemyTank() {
        if(shots.size() < 5) {
            Shot shot = shot();
            shots.add(shot);

            new Thread(shot).start();
        }
    }
}
